# _*_ encoding:utf-8 _*_

from rest_framework import serializers

from goods.models import GoodsVisitCount


# 定义针对模型类GoodsVisitCount的序列化器
class GoodsVisitCountModelSerializer(serializers.ModelSerializer):
    category = serializers.StringRelatedField()

    class Meta:

        model = GoodsVisitCount
        fields = ['category', 'count']




